//
//  ZyaCarInfoCell.swift
//  SlaughterClient
//
//  Created by 邱仙凯 on 2022/3/24.
//  Copyright © 2025 aowang. All rights reserved.
//

import UIKit
 
class ZyaCarInfoCell: GlobalDetailCell {
  
    
    var item1 :KSFormHItem = {
        let appe = KSFormHAppear()
            .roundType(.top)
          let v = KSFormHItem(title: "车牌号",appearance:appe)
        v.disabled = true
        return v
    }()
    var item2 :KSFormHItem = {
        let appe = KSFormHAppear()
             
        let v = KSFormHItem(title: "司机姓名",appearance:appe )
        v.disabled = true
        return v
    }()
    var item3 :KSFormHItem = {
        let appe = KSFormHAppear()
            .phoneInput(true)
         let v = KSFormHItem(title: "联系方式",appearance:appe )
        v.disabled = true
        return v
    }()
    var item4 :KSFormHItem = {
        let appe = KSFormHAppear()
            .roundType(.bottom)
         let v = KSFormHItem(title: "到达时间",appearance:appe )
        v.disabled = true
        return v
    }()
  
     func configDataSource() {
 
         item1.setVal(one!.zCarNo)
        item2.setVal(one!.zDriverNm)
        item3.setVal(one!.zDriverTel)
        item4.setVal(one!.zArriveTm)
 
 
    }
    var one: CarInfo? {
        didSet {
             self.configDataSource()
        }
    }
    func configView() {
        itemBg.add(item1)
              .add(item2)
            .add(item3)
              .add(item4)
         
      }
   
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        self.selectionStyle = .none
        self.itemBg.ks_width = KSGlobal.screenW - 12
         self.configView()
     }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
 
 
 
    
}
